package com.dingli.entity;

import java.util.Date;

public class Loan {
    /**
     * 编号
     */
    private int id;
    /**
     * 用户id
     */
    private  int uid;
    /**
     * 贷款类型
     */
    private int type;
    /**
     * 贷款金额
     */
    private Double loan_money;
    /**
     * 利息
     */
    private Double interest_money;
    /**
     * 所需还款
     */
    private Double sum_money;
    /**
     * 创建时间
     */
    private Date create_time;
    private  User user;

    public Loan() {
    }
   
    public Loan(int id, int uid, int type, Double loan_money, Double interest_money, Double sum_money, Date create_time) {
        this.id = id;
        this.uid = uid;
        this.type = type;
        this.loan_money = loan_money;
        this.interest_money = interest_money;
        this.sum_money = sum_money;
        this.create_time = create_time;

    }
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Double getLoan_money() {
        return loan_money;
    }

    public void setLoan_money(Double loan_money) {
        this.loan_money = loan_money;
    }

    public Double getInterest_money() {
        return interest_money;
    }

    public void setInterest_money(Double interest_money) {
        this.interest_money = interest_money;
    }

    public Double getSum_money() {
        return sum_money;
    }

    public void setSum_money(Double sum_money) {
        this.sum_money = sum_money;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Loan{" +
                "id=" + id +
                ", uid=" + uid +
                ", type=" + type +
                ", loan_money=" + loan_money +
                ", interest_money=" + interest_money +
                ", sum_money=" + sum_money +
                ", create_time=" + create_time +
                '}';
    }



}
